<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/4/24/024
  Time: 15:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<html>
<head>
    <title>Title</title>
    <style>
        h2{
            font-size: 22px;
            color: #838FA1;
        }
        h3{
            margin-bottom: 20px;
            margin-left:250px;
            font-size:18px ;
            color: #485a6a;
        }
        #table01{
           /* margin: 0 auto;*/
            border: 0px #1cc09f solid;
            text-align: center;
            height: 30px;
            line-height:30px;
            color: #485a6a;
        }
        td{
            width: 100px;
        }
        #table02{
          /*  margin: 0 auto;*/
            border: 0px #1cc09f solid;
            text-align: center;
            height: 30px;
            line-height:30px;
            color: #485a6a;
        }
        .a{
            width:100px;
        }
        .qq{
            width: 150px;
        }
        #table03{
            /*  margin: 0 auto;*/
            border: 0px #1cc09f solid;
            text-align: center;
            height: 30px;
            line-height:30px;
            color: #485a6a;
        }
    </style>
</head>
<body>
<H2>订单详情</H2>

<table id="table01">
    <h3>图书基本信息</h3>
    <tr>
        <td>图书编号</td>
        <td class="qq">图书名称</td>
        <td>图书价格</td>
        <td>数量</td>
        <td>图书类型</td>
    </tr>
    <tr>
        <td>${od.bookid.id}</td>
        <td class="qq">${od.bookid.bname}</td>
        <td>${od.bookprice}</td>
        <td>${od.num}</td>
        <td>${od.bookid.categoryid.typename}</td>
    </tr>
</table>
<table id="table02">
    <h3>订单基本信息</h3>
    <tr>
        <td>订单编号</td>
        <td class="qq">下单时间</td>
        <td>物流</td>
        <td>备注</td>
        <td>订单状态</td>
    </tr>
    <tr>
        <td>${od.orderid.id}</td>
        <td class="qq"><fmt:formatDate value="${od.orderid.ordertime}" pattern="yyyy-MM-dd HH:mm"/></td>
        <td>${od.orderid.shipname}</td>
        <td>${od.orderid.note}</td>
        <td>
            <c:if test="${od.orderid.state==0}">待付款</c:if>
            <c:if test="${od.orderid.state==1}">已付款</c:if>
            <c:if test="${od.orderid.state==2}">待发货</c:if>
            <c:if test="${od.orderid.state==3}">已发货</c:if>
            <c:if test="${od.orderid.state==4}">待收货</c:if>
            <c:if test="${od.orderid.state==5}">已收货</c:if>
            <c:if test="${od.orderid.state==6}">待评价</c:if>
            <c:if test="${od.orderid.state==7}">已完成</c:if>
        </td>
    </tr>
</table>

<table id="table03">
    <h3>个人基本信息</h3>
    <tr>
        <td>昵称</td>
        <td class="qq">地址</td>
        <td>区域</td>
        <td>电话</td>
        <td>邮编</td>
    </tr>
    <tr>
        <td>${od.orderid.uid.uname}</td>
        <td class="qq">${od.orderid.addressid.addressdetail}</td>
        <td>${od.orderid.addressid.area}</td>
        <td>${od.orderid.addressid.phone}</td>
        <td>${od.orderid.addressid.postcode}</td>
    </tr>
</table>

</body>
</html>
